/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const homeRouter = {
  path: '/',
  component: Layout,
  redirect: '/home',
  name: 'home',
  // meta: { title: '首页'  ,icon: 'home'},
  children: [{
      path: 'home',
      component: () => import('@/views/home/index'),
      name: 'homeIndex',
      meta: {
        title: '首页',
        icon: 'home',
        affix: true
      },
    },
    {
      path: 'needHandle',
      component: () => import('@/views/home/needHandle'),
      name: 'needHandle',
      meta: {
        title: '今日待办',
      },
      hidden: true
    },
    {
      path: 'earlyWarning',
      component: () => import('@/views/home/earlyWarning'),
      name: 'earlyWarning',
      meta: {
        title: '预警信息',
      },
      hidden: true
    },
    {
      path: 'contactUs',
      component: () => import('@/views/home/contactUs'),
      name: 'contactUs',
      meta: {
        title: '联系我们',
      },
      hidden: true
    },
    {
      path: 'helpCenter',
      component: () => import('@/views/home/helpCenter'),
      name: 'helpCenter',
      meta: {
        title: '帮助中心',
      },
      hidden: true
    },
    {
      path: 'helpCenterDetails',
      component: () => import('@/views/home/helpCenterDetails'),
      name: 'helpCenterDetails',
      meta: {
        title: '帮助中心',
      },
      hidden: true
    },
    {
      path: 'newsNotice',
      component: () => import('@/views/home/newsNotice'),
      name: 'newsNotice',
      meta: {
        title: '消息公告',
      },
      hidden: true
    },
    {
      path: 'operationLog',
      component: () => import('@/views/home/operationLog'),
      name: 'operationLog',
      meta: {
        title: '操作日志',
      },
      hidden: true
    },
    {
      path: 'productDynamics',
      component: () => import('@/views/home/productDynamics'),
      name: 'productDynamics',
      meta: {
        title: '产品动态',
      },
      hidden: true
    },
    
  ]
}
export default homeRouter
